package cate.game.role.res.hero.introduction.msg;

import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBIntroduction;
import cate.game.role.Role;
import cate.game.role.res.hero.introduction.Got;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

import java.util.Map;

@NoteClass(value = "英雄图鉴数据 の 返回")
public class HeroIntroductionDataResp implements MsgOutput {
    @NoteField(value = "玩家拥有过的食灵原型数据  Map<原型ID，图鉴数据>")
    public Map<Integer, Got> data;

    public HeroIntroductionDataResp(){

    }

    public HeroIntroductionDataResp(Role role){
        this.data = role.getRes().heroIntroduction.heroGots;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBIntroduction.HERO_DATA_RESP;
    }
}
